// 常驻进程执行的文件
import Deamon from './helper/daemon';
import { IOptions } from './index';

const { options, scriptFile } = process.env;
if (options && scriptFile) {
  const opt: IOptions = JSON.parse(options);
  new Deamon(opt).setup(scriptFile);
}